<table border="0" cellpadding="0" cellspacing="0" class="navt">
	<tr>
		<td width="62" style="padding: 7px;"><strong>Action:</strong></td>
		<td width="187" nowrap="nowrap">
			<div id="nav">Purpleasia CMS</div>
		</td>
	</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0">
	<tr>
	<?php $cms='Purpleasia CMS'?>
		<?php if(!empty($userinfor['pms_user'])):?>
		<td class="pad5">
			<a href="<?=$cms_url?>/cms_user" title="Website User"><img src="<?=$image_path?>icons/siteuser.gif" width="48" height="48" border="0"/></a>
		</td>
		<?php endif;?>
		<?php if(!empty($userinfor['pms_product'])):?>
		<td class="pad5">
			<a href="<?=$cms_url?>/cms_product" title="Product"><img src="<?=$image_path?>icons/product.gif" width="48" height="48" border="0"/></a>
		</td>
		<?php endif;?>
		<?php if(!empty($userinfor['pms_news'])):?>
		<td class="pad5">
			<a href="<?=$cms_url?>/cms_news" title="News"><img src="<?=$image_path?>icons/news.gif" width="48" height="48" border="0"/></a>
		</td>
		<?php endif;?>
		<?php if(!empty($userinfor['pms_data'])):?>
		<td class="pad5">
			<a href="<?=$cms_url?>/cms_download" title="Download data"><img src="<?=$image_path?>icons/data.gif" width="48" height="48" border="0"/></a>
		</td>
		<?php endif;?>
		<?php if(!empty($userinfor['pms_career'])):?>
			<td class="pad5">
				<a href="<?=$cms_url?>/cms_career/index" title="Career"><img src="<?=$image_path?>icons/vacancy.gif" width="48" height="48" border="0"/></a></td>
		<?php endif;?>
		<?php if(!empty($userinfor['pms_gallery'])):?>
		<td class="pad5">
			<a href="<?=$cms_url?>/cms_gallery/index" title="Gallery"><img src="<?=$image_path?>icons/gallery.gif" width="48" height="48" border="0"></a></td>
		<?php endif;?>
		<?php if(!empty($userinfor['pms_setting'])):?>
		<td class="pad5">
			<a href="<?=$cms_url?>/cms_settings/index" title="Setting"><img src="<?=$image_path?>icons/settings.gif" width="48" height="48" border="0"></a></td>
		<?php endif;?>
		<?php if(!empty($userinfor['pms_option'])):?>
		<td class="pad5">
			<a href="<?=$cms_url?>/cms_options/index" title="Options"><img src="<?=$image_path?>icons/option.gif" width="48" height="48" border="0"></a></td>
		<?php endif;?>
		<?php if(!empty($userinfor['pms_suser'])):?>
		<td class="pad5">
			<a href="<?=$cms_url?>/cms_system" title="CMS User"><img src="<?=$image_path?>icons/suser.gif" width="48" height="48" border="0"> </a></td>
		<?php endif;?>
		<td class="pad5">
			<a href="<?=$cms_url?>/cms_authentication/logout" title="Logout"><img src="<?=$image_path?>icons/logout.gif" width="48" height="48" border="0"></a></td>
	</tr>
</table>
<form action="#" autocomplete="off">
<?php if(!empty($userinfor['pms_node'])):?>
<ul id="breakcum">
	<?php $pid = 0; foreach($root_navs as $key => $item):?>
	<li>
		<label>Level <?=$key?></label>
		<a href="<?=site_url(array("c"=>"cms_site_frame", "method" => "add", "level" => $key, "nav_id" => $pid))?>" title="Add Menu Item"><img src="<?=$image_path?>level/add_nav.gif" width="17" height="18" border="0"></a>
		<select name"level1" onchange="if(this.options[this.selectedIndex].value!='#')window.location=this.options[this.selectedIndex].value">
			<option value="#" selected="true">Please select</option>
			<?php foreach($item as $item1):?>
				<option value="<?=site_url(array("c" => "cms_site_content", "m" => "index", "level" => $key + 1, "navid" => $item1['id']))?>" <?=isset($item1['selected']) ? "selected='true'" : ""?>><?=$item1['nav_name']?></option>
				<?php if(isset($item1['selected']) && $item1['selected']) $pid = isset($item1['id']) ? intval($item1['id']) : ""; ?>
			<?php endforeach;?>
		</select>
	</li>
	<?php endforeach;?>
</ul>
<?php endif;?>
</form>